<!-- PAGE CONTENT WRAPPER -->
<div class="page-content-wrap">

    <div class="row">
        <div style="background: #ffffff;">

            <form class="form-horizontal" name="editTSForm" novalidate>
                <div class="panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title"><strong>编辑课程任务</strong></h3>
                        <!--<ul class="panel-controls">-->
                        <!--<li><a href="javascript:void(0)" class="panel-remove"><span class="fa fa-times"></span></a></li>-->
                        <!--</ul>-->
                    </div>
                    <div class="panel-body panel-dialog">
                        <p>请按照提示输入课程任务的各项信息。</p>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">任务标题</label>
                            <div class="col-md-6 col-xs-12">
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="text" class="form-control" name="subject" ng-model="editingTaskStudy.subject" required/>
                                </div>
                                <span class="help-block" ng-show="(editTSForm.subject.$untouched && !editTSForm.$submitted) || editTSForm.subject.$valid">请输入课程任务的标题</span>
                                <div ng-show="(editTSForm.subject.$touched || editTSForm.$submitted ) && editTSForm.subject.$invalid">
                                    <span class="error-block" ng-show="editTSForm.subject.$error.required">必须要输入课程任务的标题</span>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">序号</label>
                            <div class="col-md-6 col-xs-12">
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="text" class="form-control" name="sort" ng-model="editingTaskStudy.sort" required ng-pattern="/^[1-9]\d*$/"/>
                                </div>
                                <span class="help-block" ng-show="(editTSForm.sort.$untouched && !editTSForm.$submitted) || editTSForm.sort.$valid">请输入课程任务的序号</span>
                                <div ng-show="(editTSForm.sort.$touched || editTSForm.$submitted ) && editTSForm.sort.$invalid">
                                    <span class="error-block" ng-show="editTSForm.sort.$error.required">必须要输入课程任务的序号</span>
                                    <span class="error-block" ng-show="editTSForm.sort.$error.pattern">必须是大于零的整数</span>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">是否必须完成</label>
                            <div class="col-md-6 col-xs-12">
                                <input type="checkbox" style="width: 20px;height: 20px;" ng-model="editingTaskStudy.required"/>
                                <span class="help-block">该任务是否必须完成</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">是否需要审批</label>
                            <div class="col-md-6 col-xs-12">
                                <input type="checkbox" style="width: 20px;height: 20px;" ng-model="editingTaskStudy.isApprove"/>
                                <span class="help-block">该任务是否需要审批</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">描述</label>
                            <div class="col-md-6 col-xs-12">
                                <textarea class="form-control" rows="5" ng-model="editingTaskStudy.content"></textarea>
                                <span class="help-block">请输入任务的描述</span>
                            </div>
                        </div>

                    </div>
                    <div class="panel-footer" style="text-align: center;">
                        <button class="btn btn-danger" ng-click="cancel()"><i class="fa fa-times"></i>取消</button>
                        <button class="btn btn-info" ng-click="submit()"><i class="fa fa-check"></i>确定</button>
                    </div>
                </div>
            </form>

        </div>
    </div>

</div>
<!-- END PAGE CONTENT WRAPPER -->